<h1>VoteType List</h1>
<div class="buttons">
  <a href="<!--[pnmodurl modname='VoteAlert' type='admin' func='page' ctrl='home']-->" class="regular">Vote Alert Main Page</a>
  <a href="<!--[pnmodurl modname='VoteAlert' type='admin' func='form' ctrl='VoteType']-->" class="regular">Add New VoteType</a>
</div>
<table width="100%">
  <tr background>
    <td width="25%">ID</td>
    <td width="25%">Vote Type</td>
    <td width="25%">Group</td>
    <td width="25%">Option</td>
  </tr>
<!--[if $objectArray]-->
<!--[foreach from=$objectArray item=item]-->
  <tr>
    <td><!--[$item.id]--></td>
    <td><!--[$item.name]--></td>
    <td><!--[$item.group]--></td>
    <td><a href="<!--[pnmodurl modname='VoteAlert' type='admin' func='form' ctrl='VoteType' id=$item.id]-->">Edit</a> | <a href="<!--[pnmodurl modname='VoteAlert' type='admin' func='delete' ctrl='VoteType' id=$item.id]-->" onclick="return confirm('Are you sure you want to delete?')">Delete</a>
    </td>
  </tr>
  <!--[/foreach]-->
<!--[else]-->
    <td>NULL</td>
    <td>NULL</td>
    <td>NULL</td>
<!--[/if]-->
</table>